package cate.game.role.bag.heropart.msg;


import cate.common.annotation.OperationSetter;
import cate.common.table.d.GDOperation;
import cate.game.GameBody;
import cate.game.client.ClientContext;
import cate.game.client.interceptor.anno.ShutUpWorldTree;
import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgInput;
import cate.game.client.msg.id.MsgIdBBag;
import easy.java.dev.note.NoteField;

@ClientMsg(title = "碎片合成的请求")
@OperationSetter(value = GDOperation.FRAGMENT_COMPOSITE, sub = "id")
@ShutUpWorldTree
public class HeroPartCompositeReq implements MsgInput {
    @NoteField(value = "碎片id")
    public int id;

    @NoteField(value = "合成数量", detail = "需要合成英雄的数量")
    public int num;

    @Override
    public void execute(GameBody game, ClientContext cc) {
        cc.getRole().getBag().heroPart.composite(id,num);
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBBag.HERO_PART_COMPOSITE_REQ;
    }

}
